package com.borrow.service;

import com.entity.Book;
import com.entity.BookVo;
import com.entity.ResultMap;
import com.entity.UIResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(url = "http://localhost:7000/bookprovider/", name = "BookService")
public interface BorrowServieFeign {


    @RequestMapping("/lendbook")
    public ResultMap lendBookFeign(@RequestParam("ids[]") int[] ids);


    @RequestMapping("/getBook")
    public UIResult<List<Book>> getBook(BookVo bookVo);
}
